package com.dongpl.module.sysUser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 用户实体类
 * @author Administrator
 */
@Data
@TableName(value = "t_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = -2257705615285491530L;

    @TableId(type = IdType.AUTO)
    private String id;

    private String username;

    private String password;

    private String salt;

    private int status;

    /**
     * 定义角色集合
     */
    private List<SysRole> roles;

}
